var express = require('express');
var router = express.Router();

router.get('/list',function (req, res, next) {
    // res.status(403).end()
    var data = require('./mockData/terminalList.json')
    res.json({
        draw: req.query.draw,
        recordsFiltered: 300,
        recordsTotal: 3000,
        data: data
    })
})

router.get('/versionList',function (req, res, next) {
    res.json({
        "resultData": [
            {
                "downloadUrl": "www.baidul.com",
                "id": 0,
                "modelName": "express 0",
                "name": "express 0"
            },
            {
                "downloadUrl": "www.baidul.com",
                "id": 1,
                "modelName": "express 0",
                "name": "express 1"
            },
            {
                "downloadUrl": "www.baidul.com",
                "id": 2,
                "modelName": "express 0",
                "name": "express 2"
            }
        ]
    })
})

module.exports = router